Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DRY by adding create_element method in abbr extension #1483

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

yves-chevallier
Copy link
Contributor

I've identified some duplicated code in abbr.py. In my specific use case, I'd prefer to use an a element instead of abbr for another extension. It would be cleaner and more flexible to simply override the create_element method, adhering more to the DRY principle.

Not entirely sure if this change aligns with the project's goals, but I thought it was worth proposing.

@waylan
Copy link
Member

waylan commented Sep 27, 2024

I'm indifferent to this being merged. However, if it is to be merged, then it needs a changelog entry. The failing checkspelling test can be ignored as it is not related to this change.

@waylan waylan added the requires-changes Awaiting updates after a review. label Sep 27, 2024
@waylan waylan merged commit eeb509d into Python-Markdown:master Sep 30, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires-changes Awaiting updates after a review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants